<?php 

class Ext_Blog_Validate_Adapter_BlogName extends Ext_Blog_Validate_Abstract
{
    public function __construct($blogName)
    {
        $this->_blogName  = $blogName;
    }
    
    public function isValid()
    {
        $validatorChain = new Zend_Validate();
        $validatorChain
            ->addValidator(new Zend_Validate_NotEmpty(), true)
            ;
        
        if(!$validatorChain->isValid($this->_blogName)) {
            $this->addMessages('Blog name', $validatorChain->getMessages());
            return false;
        }
        
        return true;
    }
}
